import { createApp } from 'vue'
import App from './App.vue'
import router from './router/index'
import { createPinia } from 'pinia'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// css样式初始化的插件
import 'normalize.css/normalize.css'
import "@/assets/style/index.scss"
import ElementPlus from 'element-plus';
import zhCn from 'element-plus/es/locale/lang/zh-cn';
// svg图标插件
import SvgIcon from './components/SvgIcon/index.vue'
// 路由拦截
import "./router/permission"
// animate.css 动画库
import 'animate.css';
// svg插件
import 'virtual:svg-icons-register';
const app = createApp(App)
Object.keys(ElementPlusIconsVue).forEach(key => {
  app.component(key, ElementPlusIconsVue[key]);
});
app.use(createPinia()).component('svg-icon', SvgIcon).use(router)
// 设置element-plus的默认配置
app.use(ElementPlus, {
  locale: zhCn
})
app.mount('#app')